package cn.mineserv.video.videoordersystem.utils;

/**
 * @author 爱吃蛋白的丶圆周率
 * @company 圆周率有限公司
 */
public class RedisKeyUtil {
    private static final String SPLIT = "_";
    private static final String MANGA = "manga";
    private static final String CHAPTER = "chapter";
    private static final String UUID = "uuid";
    private static final String USER_ID = "uid";
    private static final String LAST_REQUEST_TIME = "time";

    public static String getMangaKey(Integer mangaId){
        return MANGA+SPLIT+mangaId;
    }
    public static String getChapterKey(Integer chapterPictureId){
        return CHAPTER+SPLIT+chapterPictureId;
    }
    public static String getUuidKey(){
        return UUID;
    }

    public static String getUserIdKey(){
        return USER_ID;
    }

    public static String getUuidLastRequestTimeKey(){
        return UUID+SPLIT+LAST_REQUEST_TIME;
    }

    public static String getUidLastRequestTimeKey(){
        return USER_ID+SPLIT+LAST_REQUEST_TIME;
    }



}
